package com.emspost;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

public class DateTest {
    public static void main(String[] args) {
        //获取当前时间
        DateTime date = DateUtil.date();
        int hour = DateUtil.hour(date, true);
        System.out.println(hour);
    }
}
